﻿@model DHQGHN.PM2.ViewModels.BangKeViewModel

@{
    ViewBag.Title = "Quản lý bảng kê";
    ViewBag.Group = "Lập bảng kê";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<div class="page-bar">
    <ul class="page-breadcrumb" style="padding: 4px;">
        <li>
            <i class="fa fa-home"></i>
            <a href="#"> Xem bảng kê</a>
        </li>
    </ul>
</div>
<div class="row" style="margin-top:5px;">
    <div class="col-md-6">
        <fieldset id="fs1" class="fs_group1">
            <legend>Thông tin chung của hộ</legend>
            <div class="row" style="margin-top:10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.HOUSEHOLD_NUMBER, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.HOUSEHOLD_NUMBER)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.AREA_NAME, new { @class = "text-center" })
                </div>
                <div class="col-md-9 ">
                    @Html.DisplayTextFor(model => model.AREA_NAME)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.HOUSEHOLD_NAME, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.HOUSEHOLD_NAME)
                </div>

            </div>
        </fieldset>
        <fieldset id="fs1" class="fs_group1" style="margin-top:15px;">
            <legend>Thông tin chi tiết của hộ</legend>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.NUM_OF_HH_MEMBER, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.NUM_OF_HH_MEMBER)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.HH_HEAD_MOBILE, new { @class = "text-center " })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.HH_HEAD_MOBILE)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.HH_HEAD_EMAIL, new { @class = "text-center" })
                </div>
                <div class="col-md-9 ">
                    @Html.DisplayTextFor(model => model.HH_HEAD_EMAIL)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.SURVEY_METHOD_ID, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @if (Model.SURVEY_METHOD_ID == "01")
                    {

                        <h5 style="margin:0px !important">Điều tra Online</h5>

                    }
                    else if (Model.SURVEY_METHOD_ID == "02")
                    {

                        <h5 style="margin:0px !important">Điều tra Tablet</h5>

                    }
                    else if (Model.SURVEY_METHOD_ID == "03")
                    {

                        <h5 style="margin:0px !important">Điều tra Giấy</h5>

                    }
                    else
                    {
                        <h5 style="margin:0px !important">Không xác định</h5>
                    }
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 " style="vertical-align: middle;">
                    @{
                        var imgSrc = String.Format("data:image/jpeg;base64,{0}", Model.HH_HEAD_SIGNATURE);
                    }
                    @Html.LabelFor(model => model.HH_HEAD_SIGNATURE, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    <img src="@imgSrc" />
                </div>
            </div>
        </fieldset>
    </div>
    <div class="col-md-6">

        <fieldset id="fs1" class="fs_group1">
            <legend>Thông tin địa chỉ</legend>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.COUNTRY_ID, new { @class = "text-center" })
                </div>
                <div class="col-md-9 ">
                    Việt Nam
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3">
                    @Html.LabelFor(model => model.NAME, new { @class = "text-center" }) <font size="3" color="red">*</font>
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.NAME)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 ">
                    @Html.LabelFor(model => model.CODE, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.CODE)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 ">
                    @Html.LabelFor(model => model.ADDRESS_DETAILS, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.ADDRESS_DETAILS)
                </div>
            </div>

            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 ">
                    @Html.LabelFor(model => model.ADM_UNIT_EXT_NAME)
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.ADM_UNIT_EXT_NAME)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 ">
                    @Html.LabelFor(model => model.GPS_LONGITUDE, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.GPS_LONGITUDE)
                </div>

            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 ">
                    @Html.LabelFor(model => model.GPS_LATITUDE, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.GPS_LATITUDE)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 ">
                    @Html.LabelFor(model => model.GPS_ACCURACY, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.DisplayTextFor(model => model.GPS_ACCURACY)
                </div>
            </div>
            <div class="row" style="margin-top: 10px;">
                <div class="col-md-3 " style="vertical-align: middle;">
                    @Html.LabelFor(model => model.DESCRIPTIONS, new { @class = "text-center" })
                </div>
                <div class="col-md-9">
                    @Html.TextAreaFor(model => model.DESCRIPTIONS, new { @class = "form-control form-control-add input-sm", @rows = 3, style = "max-width: 90%; border: none; background-color: transparent; padding-top: 0px;", disabled = "disabled" })
                </div>
            </div>
        </fieldset>
    </div>
</div>
<div class="btn-hh" align="center" style="margin-top:10px;">
    @*<button type="submit" class="btn btn-md btn-default" value="Sửa" onclick="window.location.href='@Url.Action("SuaBangKeVM", "HouseHold", new { Model.HOUSEHOLD_ID })';"><i class="fa fa-edit"></i> Sửa</button>*@
    <button type="button" class="btn btn-sm btn-default" value="Thoát" onclick="window.location.href='@Url.Action("IndexHouseHoldPV")';"><i class='fa fa-reply'></i> Thoát</button>
</div>
